package com.cloud.minio;

import io.minio.MinioClient;
import io.minio.errors.InvalidEndpointException;
import io.minio.errors.InvalidPortException;

import java.io.*;

public class MinioTest {
    public static void main(String[] args) throws Exception {
        MinioClient client = new MinioClient("https://minio.jztdata.com:9000", "admin", "admin123");
        Boolean found = client.bucketExists("cyrptower");
        InputStream in = client.getObject("cryptower", "deploy/docker-aarch64.tar.gz");


        for (int i = 0; i < 10; ++i) {

        }
//        while (in.read())
//        FileWriter writer = new FileWriter("");
    }
}
